/**
 * @file testQLineEdit.cpp
 * @brief test QLineEdit
 * @author JakeYang <add358@gmail.com>
 * @version 0.1
 * @date 2016-03-31
 */

#include <QtWidgets>
#include <QtTest/QtTest>

class TestQLineEdit: public QObject {
	Q_OBJECT
private slots:
void testGui();
};


void TestQLineEdit::testGui()
{
	QLineEdit lineEdit;
	QTest::keyClicks(&lineEdit, "Hello world");
// other event:	QTest::keyClick(), QTest::keyPress(), QTest::keyRelease(), QTest::mouseClick(), QTest::mouseDClick(), QTest::mouseMove(), QTest::mousePress() and QTest::mouseRelease()

	QCOMPARE(lineEdit.text(), QString("Hello world"));
}

QTEST_MAIN(TestQLineEdit)
#include "testQLineEdit.moc"
